package com.example.vue_shop.components.rights.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author lipengwei
 */
@Data
@ApiModel(description = "权限对象")
public class Rights {
    @ApiModelProperty(value = "ID", name = "id", example = "1", dataType =
            "int", hidden = true)
    private int id;
    @ApiModelProperty(value = "权限名称", name = "rightsName", example = "1", dataType =
            "String")
    private String rightsName;
    @ApiModelProperty(value = "权限等级", name = "rightsGrade", example = "1",
            dataType =
                    "String")
    private String rightsGrade;
    @ApiModelProperty(value = "路径", name = "path", example = "users",
            dataType =
                    "String")
    private String path;
    @ApiModelProperty(value = "父Id", name = "parentId", example = "1",
            dataType =
                    "String")
    private int parentId;
    @ApiModelProperty(value = "权限编码", name = "code", example = "010000",
            dataType = "String")
    private String code;
}
